package com.java.yz.day15.factorydemo2;

import com.java.yz.day15.factorydemo1.Animal;
import com.java.yz.day15.factorydemo1.Dog;

public class DogFactory extends Factory{

    @Override
    public Animal getAnimal() {
        return new Dog();
    }
}
